package com.cinc.ebc.mm.model.template;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 库存初始化明细
 * @Author: jeecg-boot
 * @Date: 2022-07-03
 * @Version: V1.0
 */
@ApiModel(value = "MmStockInitDetailImpModel对象", description = "库存初始化明细")
@Data
public class MmStockInitDetailImpTemplate {

    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID")
    private String id;
    /**
     * 主表ID
     */
    @ApiModelProperty(value = "主表ID")
    private String pid;
    /**
     * 行号
     */
    @ApiModelProperty(value = "行号")
    private Integer lineNo;
    /**
     * 物料
     */
    @ApiModelProperty(value = "物料")
    private String materialId;
    /**
     * 物料编号
     */
    @Excel(name = "物料编号", width = 15)
    @ApiModelProperty(value = "物料编号")
    private String materialNo;
    /**
     * 物料描述
     */
    @Excel(name = "物料描述", width = 15)
    @ApiModelProperty(value = "物料描述")
    private String materialDesc;
    /**
     * 单位
     */
    @Excel(name = "单位", width = 15, dictTable = "mdm_unit", dicText = "unit_name", dicCode = "unit_code")
    @Dict(dictTable = "mdm_unit", dicText = "unit_name", dicCode = "unit_code")
    @ApiModelProperty(value = "单位")
    private String unit;
    /**
     * 数量
     */
    @Excel(name = "数量", width = 15)
    @ApiModelProperty(value = "数量")
    private java.math.BigDecimal qty;
    /**
     * 含税单价
     */
    @Excel(name = "含税单价", width = 15)
    @ApiModelProperty(value = "含税单价")
    private java.math.BigDecimal unitPrice;
    /**
     * 含税金额
     */
    @Excel(name = "含税金额", width = 15)
    @ApiModelProperty(value = "含税金额")
    private java.math.BigDecimal sumPrice;
    /**
     * 批次
     */
    @Excel(name = "批次", width = 15)
    @ApiModelProperty(value = "批次")
    private String batchNo;
    /**库位*/
    @Excel(name = "库位", width = 15, dictTable = "mdm_storage_location", dicText = "location_no", dicCode = "id")
    @Dict(dictTable = "mdm_storage_location", dicText = "location_no", dicCode = "id")
    @ApiModelProperty(value = "库位")
    private String storageLocationId;
    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**
     * 库房
     */
    @ApiModelProperty(value = "库房")
    private String warehouseId;
    /**
     * 初始化标志
     */
    @ApiModelProperty(value = "初始化标志")
    private String initFlag;
    /**
     * 冲销明细ID
     */
    @ApiModelProperty(value = "冲销明细ID")
    private String cancelDetailId;
    /**
     * 对冲标志
     */
    @ApiModelProperty(value = "对冲标志")
    private String handleFlag;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    private String updateBy;
    /**
     * 修改时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**
     * 租户ID
     */
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;
}
